Creating custom selection scripts

Command

Path

Custom Selection

Tools

Custom selection scripts allow you to select or deselect objects in a file according to specified criteria. No scripting knowledge is necessary.

The layer options must be set to Show/Snap/Modify Others to select objects on another layer.

To create a custom selection script:

Select the command.

The Custom Selection dialog box opens. Choose the desired options for the selection operation.

Click to show/hide the parameters.Click to show/hide the parameters.

Parameter

Description

Select

Selects the objects matching the specified criteria without affecting the existing selection status of other objects

Select Only

Deselects all objects prior to performing the selection operation

Deselect

Deselects any objects matching the specified criteria without affecting the selection status of other objects in the file

Execute Immediately

Performs the specified selection operation immediately upon exiting the Criteria dialog box; the operation criteria are not saved for future use

Create VectorScript

Saves the criteria and command options as a VectorScript that can be reused

Create Python Script

Saves the criteria and command options as a Python script that can be reused

Click Criteria and specify the criteria for the operation as described in The Criteria dialog box. Click OK.

If you selected one of the script options, when prompted, name the script containing the selection commands. The script then displays in a script palette, and can be double-clicked to perform the operation. See Creating and editing script palettes and scripts.

If you selected the Execute Immediately option, the objects are selected or deselected.

Using scripts

Running scripts

 

Was this page helpful?